//
//  ViewController.m
//  LoginAndRegister
//
//  Created by 苗钧豪 on 16/7/15.
//  Copyright © 2016年 苗钧豪. All rights reserved.
//

#import "ViewController.h"
#import "FoundViewController.h"
#import "RegisterViewController.h"
@interface ViewController ()<UITextFieldDelegate>

@end

@implementation ViewController
#pragma mark ================ 简书链接 ================
/*
http://www.jianshu.com/p/e9d032492f9e
*/

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBarHidden = YES;
    // Do any additional setup after loading the view, typically from a nib.
}
// 登录按钮执行的方法
- (IBAction)LoginLAGOU:(id)sender {
    NSLog(@"恭喜您登陆成功");
}
// 找回密码按钮执行的方法
- (IBAction)FoundPassWord:(id)sender {
    FoundViewController *foundVC = [[FoundViewController alloc]init];
    foundVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentViewController:foundVC animated:YES completion:nil];
}
// 注册按钮执行的方法
- (IBAction)RegisterLAGOU:(id)sender {
    RegisterViewController *registerVC = [[RegisterViewController alloc]init];
    registerVC.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    [self presentViewController:registerVC animated:YES completion:nil];
}
// 回收键盘
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
